@import 'lib/styles/variable.scss';

.yui-pager {
  display: flex;
  align-items: center;

  &-next,
  &-prev {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid $default-border-color;
    border-radius: $radius;
    .position-icon {
      fill: $font-low-color;
    }

    &:hover {
      background: $B050;
    }

    &.yui-pager-disabled {
      cursor: not-allowed;
      background: $B050;
    }

    &.yui-pager-hide {
      display: none;
    }
  }
  &-next {
    margin-left: 4px;
  }
  &-item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    padding: 4px 8px;
    margin-left: 4px;
    border: 1px solid $default-border-color;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;

    &:hover {
      background: $B050;
      border-radius: 6px;
    }
    &:active {
      background: $default-border-color;
      border-radius: 6px;
      color: $font-color-title;
    }

    &.yui-pager-current {
      color: $H700;
      border: 1px solid $H600;
      border-radius: 6px;
      cursor: default;
      &:hover {
        background: $main-color;
        border-radius: $radius;
        color: #fff;
      }
      &:active {
        background: $H600;
        border-radius: 6px;
        color: #fff;
      }
    }
  }
  .yui-pager-separator {
    display: inline-flex;
    margin-left: 4px;
    background: none;
    cursor: default;
  }
}
